package com.nondo.dean.auth.common.bean;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import java.io.Serializable;
import java.util.List;

/**
 * 角色权限
 *
 * @author linfeng
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class RoleAuthorityItem implements Serializable {

    private static final long serialVersionUID = -4299319469583075813L;

    /**
     * 角色编号
     */
    private Long roleId;

    /**
     * 权限ID,Map
     */
    private List<Long> authorities;


    public RoleAuthorityItem() {
    }

    public RoleAuthorityItem(Long roleId, List<Long> authorities) {
        this.roleId = roleId;
        this.authorities = authorities;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    public List<Long> getAuthorities() {
        return authorities;
    }

    public void setAuthorities(List<Long> authorities) {
        this.authorities = authorities;
    }
}
